$(document).ready(function(){
	var validator = $("#frmaddplan").validate({
		errorElement:'div',
		rules: {
			name: {
				required: true				
			},
			leads: {
				required: true,
				//number:true,
				maxlength:10
			},
			month: {
				required: true,
				number:true,
				maxlength:10
			}/*,
			freeleads: {
				required: true,
				number:true,
				maxlength:10
			}*/,
			price: {
				required: true,
				number:true,
				maxlength:10
			}
		},
		messages: {
			name: {
				required: "Enter plan name"
			},	
			leads: {
				required: "Enter leads",
			//	number:"Please enter only number",
				maxlength:"Enter at most 10 digits "
			},
			month: {
				required: "Enter months",
				number:"Please enter only number",
				maxlength:"Enter at most 10 digits "
			}/*,
			freeleads: {
				required: "Enter free leads",
				number:"Please enter only number",
				maxlength:"Enter at most 10 digits "
			}*/,
			price: {
				required: "Enter price",
				number:"Please enter only number",
				maxlength:"Enter at most 10 digits "
			}
		}
	});	
	
});

